/* Ejercicio 3.24
   ejer3_24.c */
#include <stdio.h>

/* funcion main, el programa inicia aca */
int main( void )
{
    int counter, number, largest;

    printf( "Enter a number: " );
    scanf( "%d", &number );
    largest = number;

    counter = 2;
    while ( counter <= 10 ) {
        printf( "Enter a number: " );
        scanf( "%d", &number );
        if ( number > largest ) {
            largest = number;
        }
        counter = counter + 1;
    }

    printf( "The largest value is: %d\n", largest );
	return 0;
} /* fin de la funcion main */
